<!-- Sub Banner -->
<div id="sub_banner" class="training_head">
  <div class="container">
    <?php echo include_partial('course/badges', array('course' => $course)); ?>
    <div class="text">
      <img src="/images/training-banner.jpg" style="margin-top:-94px; float:left;" />
    </div>
  </div>
</div>
<!-- Sub Banner End -->

<!-- Sub Content -->
<div id="sub_content">
  <div class="container">
    <div class="course-breadcrumb">
      <div id="breadcrumb">
        <ul class="crumbs">
          <li class="first"><a href="<?php echo url_for('@courses'); ?>" style="z-index:9;"><span></span>Training Center - Home</a></li>
          <li class="last"><a href="javascript:void(0);" style="z-index:8;"><span class="bradc-course">Course:</span> <?php echo $course->getTitle(); ?></a></li>
        </ul>

      </div>
      <div class="clear"></div>
    </div>
    <div class="slider-wrapper">

      <?php if ($isUserPassed) : ?>
      <div class="message_wrapper">
        <div class="alert alert-success">
          You have already passed this course.
        </div>
      </div>
      <?php endif; ?>


      <i><div class="slider-posision"><span>Slide <?php echo $sf_request->getParameter('slide_num'); ?></span> of <?php echo $slideCount; ?> &nbsp;</div></i>
      <h3 class="slider-heading"><?php echo $slide->getHeadingMain(); ?></h3>
      <h4 class="slider-sub-heading"><?php echo $slide->getHeadingSub(); ?></h4>


      <?php $imagePath = '/uploads/images/slide/' . $slide->getId() . '.' . $slide->getImageExt(); ?>
      <div class="<?php if ($slide->getTemplate() == Constants::TEMPLATE_IMAGE_LEFT) : ?>IMAGE_LEFT<?php elseif ($slide->getTemplate() == Constants::TEMPLATE_IMAGE_RIGHT) : ?>IMAGE_RIGHT<?php elseif ($slide->getTemplate() == Constants::TEMPLATE_IMAGE_NONE || $slide->getTemplate() == Constants::TEMPLATE_IMAGE_ONLY) : ?>IMAGE_NONE<?php endif; ?> course-slider">
        <p>
          <?php $imgWidth = ($slide->getTemplate() == Constants::TEMPLATE_IMAGE_ONLY) ? 820 : 400; ?>
          <?php if ($slide->getTemplate() != Constants::TEMPLATE_IMAGE_NONE) : ?><img src="<?php echo $imagePath; ?>" width="<?php echo $imgWidth; ?>" height="" alt="slide_img"><?php endif; ?>
          <?php if ($slide->getTemplate() != Constants::TEMPLATE_IMAGE_ONLY) : ?><?php echo $slide->getDescription(); ?><?php endif; ?>
        </p>
        <div class="clear"></div>
      </div>
      <div class="navigator">
        <?php if (!$isFirstSlide) : ?>
          <a class="btn btn-blue btn-course-back" href="<?php echo url_for('@slide?course_id=' . $course->getId() . '&slide_num=' . ($sf_request->getParameter('slide_num') - 1)); ?>">&lt;&lt; Back</a>
        <?php endif; ?>

        <?php if (!$isLastSlide) : ?>
          <a class="btn btn-blue btn-course-next" href="<?php echo url_for('@slide?course_id=' . $course->getId() . '&slide_num=' . ($sf_request->getParameter('slide_num') + 1)); ?>">Next &gt;&gt;</a>
        <?php else: ?>
          <?php if (!$isUserPassed) : ?>
            <a class="btn btn-green btn-go-ques" href="<?php echo url_for('@question?course_id=' . $course->getId() . '&question_num=1'); ?>">Go to Questions &gt;&gt;</a>
          <?php else : ?>
            <a class="btn-back-to-course btn-yellow" href="<?php echo url_for('@courses'); ?>">&lt;&lt; Back to Courses</a>
          <?php endif; ?>
        <?php endif; ?>


        <div class="clear"></div>
      </div>
    </div>
  </div>

  <!-- Sub Content End -->
